﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;

namespace XbdSoft.WPFVersion.Common
{
    public interface IDownload
    {
        string SaveFilePath { get;}
        string FileName { get; }
        long TotalLength { get; }
        long DownloadLength { get; set; }
        DownloadStatus Status { get; }
        float Speed { get; }
        object Tag { get; set; }

        string DownloadUrl { get; }
        void Download();
        void Close();

        event EventHandler<EventArgs> DownloadStarted;
        event EventHandler<DownloadChangedEventArgs> DownloadChanged;
        event EventHandler<EventArgs> DownloadCompleted;
    }

   
}
